/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.coupon.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * 店铺表
 *
 * @author liumin
 * @date 2020-11-17 20:12:05
 */
@Data
@TableName("cn_shop")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "店铺表")
public class CnShop extends Model<CnShop> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId
    @ApiModelProperty(value="")
    private Long id;
	/**
	 * 公司Id
	 */
	@ApiModelProperty(value="公司Id")
	private Long companyId;
    /**
     * 品牌Id
     */
    @ApiModelProperty(value="品牌Id")
    private Long brandId;
	/**
	 * 登录人Id
	 */
	@ApiModelProperty(value="登录人Id")
	private Long loginId;
	@ApiModelProperty(value="绑定账号时间")
	private LocalDateTime bindTime;
    /**
     * 店铺名称
     */
    @ApiModelProperty(value="店铺名称")
    private String name;
	/**
	 * 省id
	 */
	@ApiModelProperty(value="省id")
	private Integer provinceId;
	/**
	 * 省名称
	 */
	@ApiModelProperty(value="省名称")
	private String provinceName;
	/**
	 * 城市id
	 */
	@ApiModelProperty(value="城市id")
	private Integer cityId;
	/**
	 * 城市名称
	 */
	@ApiModelProperty(value="城市名称")
	private String cityName;
	/**
	 * 区域id
	 */
	@ApiModelProperty(value="区域id")
	private Integer areaId;
	/**
	 * 区域名称
	 */
	@ApiModelProperty(value="区域名称")
	private String areaName;
    /**
     * 店铺地址
     */
    @ApiModelProperty(value="店铺地址")
    private String address;
    /**
     * 店铺联系人
     */
    @ApiModelProperty(value="店铺联系人")
    private String contacts;
    /**
     * 店铺电话
     */
    @ApiModelProperty(value="店铺电话")
    private String phone;
    /**
     * 店铺Logo
     */
    @ApiModelProperty(value="店铺Logo")
    private String shopLogo;
    /**
     * 底图url
     */
    @ApiModelProperty(value="底图url")
    private String backgroundUrl;

	@ApiModelProperty(value="视频url")
	private String videoUrl;
    /**
     * 营业开始时间
     */
	@JsonDeserialize(using = LocalTimeDeserializer.class)
	@JsonSerialize(using = LocalTimeSerializer.class)
    @ApiModelProperty(value="营业开始时间")
    private LocalTime businessStaTime;
    /**
     * 营业结束时间
     */
	@JsonDeserialize(using = LocalTimeDeserializer.class)
	@JsonSerialize(using = LocalTimeSerializer.class)
    @ApiModelProperty(value="营业结束时间")
    private LocalTime businessEndTime;

	@ApiModelProperty(value="人均消费")
	private BigDecimal averageCons;
    /**
     * 经度
     */
    @ApiModelProperty(value="经度")
    private String longitude;
	/**
	 * 纬度
	 */
	@ApiModelProperty(value="纬度")
	private String latitude;
	/**
	 * 商圈
	 */
	@ApiModelProperty(value="商圈")
	private String tradeArea;
    /**
     * 是否展示0是1否
     */
    @ApiModelProperty(value="是否展示0是1否")
    private Integer display;
    /**
     * 店铺简介
     */
    @ApiModelProperty(value="店铺简介")
    private String shopRemarks;
    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createUser;
    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private Long updateUser;
    /**
     * 创建时间
     */
	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;
    /**
     * 0可用1删除
     */
	@TableLogic
    @ApiModelProperty(value="0可用1删除")
    private Integer delFlag;
    /**
     * 租户ID
     */
    @ApiModelProperty(value="租户ID",hidden=true)
    private Integer tenantId;

	@ApiModelProperty(value="合同开始时间")
	private LocalDateTime contractStartTime;

	@ApiModelProperty(value="合同结束时间")
	private LocalDateTime contractEndTime;

	@ApiModelProperty(value="下架时间")
	private LocalDateTime offTime;

	/**
	 * 下架时间
	 */
	@ApiModelProperty(value="上架时间")
	private LocalDateTime onTime;

	@ApiModelProperty(value="创建人类型")
	private Integer createType;

    }
